//
//  window.hpp
//  RPG
//
//  Created by Matt Bailey on 28/12/2013.
//  Copyright (c) 2013 Matt Bailey. All rights reserved.
//

#pragma once

#include "GL/glew.h"
#include "GLFW/glfw3.h"

#include "camera.hpp"

#include <iostream>
#include <fstream>
#include <sstream>

using namespace std;

class Window {
    
    static int width, height, vsync, major, minor;
    bool fullscreen;
    
    static string title;
    static string settings;
    
    static void parseConfig();
    
    public:
        static GLFWwindow* createWindow();
        static void scrollCallback (GLFWwindow*, double, double);
    
        static string &setSettings() { return settings; }
    
        static const int getWidth() { return width; }
        static const int getHeight() { return height; }
        static const int getVsync() { return vsync; }
};